[PATCH] auth: Terminate properly auth_oauth2_post_setting_defines list
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 15 May 2025 10:06:56 +0000 (13:06 +0300)
committerNoah Meyerhans <noahm@debian.org>
Thu, 23 Oct 2025 14:01:33 +0000 (10:01 -0400)
Fixes:
Error: xoauth2: oauth2 failed: Local validation failed: auth_oauth2_fields settings: Failed to parse configuration: settings struct auth_oauth2_fields #1 key mismatch

Gbp-Pq: Name auth__Terminate_properly_auth_oauth2_post_setting_defines.patch

src/auth/db-oauth2.c

index bd807e30b55fcd52c34807c10f3880214b244948..230c6cf7678a5fa356fe38932a41eb0b2d1b63cf 100644 (file)
@@ -134,6 +134,8 @@ const struct setting_parser_info auth_oauth2_setting_parser_info = {
 static const struct setting_define auth_oauth2_post_setting_defines[] = {
        { .type = SET_STRLIST, .key = "oauth2_fields",
          .offset = offsetof(struct auth_oauth2_post_settings, fields) },
+
+       SETTING_DEFINE_LIST_END
 };
 
 static const struct auth_oauth2_post_settings auth_oauth2_post_default_settings = {